(function(){var lr=document&&document.currentScript&&document.currentScript.src;(window.webpackJsonpruntime=window.webpackJsonpruntime||[]).push([[0],{"7uCZ":function(kt,vt){(window.webpackJsonp=window.webpackJsonp||[]).push([[0],[function(B,$,U){"use strict";U.d($,"d",function(){return X}),U.d($,"g",function(){return V}),U.d($,"c",function(){return lt}),U.d($,"a",function(){return nt}),U.d($,"b",function(){return it}),U.d($,"e",function(){return Z}),U.d($,"f",function(){return G});var X={SCENE:"scenejs",ANIME:"animejs"},V={ENTRANCE:"entrance",ALWAYS:"always",HOVER:"hover"},lt={MOUSE_PROXIMITY:"mouse-proximity",VIEWPORT:"viewport"},nt={ATOMIC:"atomic",MIX:"mix",JOIN:"join"},it="data-anim-descriptor",Z={intensity:1,duration:1,delay:0,yoyo:!1,loop:!1,reverse:!1,arrive:!1,easing:"cubic-bezier(0.42, 0, 0.58, 1)",relative:!1,proximityThreshold:1e3,viewportThresholds:{top:0,bottom:0}},G=["translate","translate3d","translateX","translateY","translateZ","scale","scale3d","scaleX","scaleY","scaleZ","rotate","rotate3d","rotateX","rotateY","rotateZ","skew","skewX","skewY"]},function(B,$,U){"use strict";function X(b){return(X=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(C){return typeof C}:function(C){return C&&typeof Symbol=="function"&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":typeof C})(b)}function V(b){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,A=arguments.length>2&&arguments[2]!==void 0&&arguments[2];try{var I=b.ownerDocument.defaultView,S=it(b),w=-S.width1&&arguments[1]!==void 0&&arguments[1],A=getComputedStyle(b),I=A.position==="absolute",S=C?/(auto|scroll|hidden)/:/(auto|scroll)/;if(A.position==="fixed")return nt();for(var w=b;w=w.parentElement;)if(A=getComputedStyle(w),(!I||A.position!=="static")&&S.test(A.overflow+A.overflowY+A.overflowX)){var N=!0;if(w.scrollTop===0&&(w.scrollTop=1,w.scrollTop===0?N=!1:w.scrollTop=0),N)return w===document.body?nt():w}return nt()}function nt(){return document.scrollingElement||document.documentElement||document.body}function it(b){if(!x(b.originalElementStyle)){var C=b.getAttribute("style");b.setAttribute("style",b.originalElementStyle);var A=b.getBoundingClientRect();return C==="null"?b.removeAttribute("style"):b.setAttribute("style",C),A}return b.getBoundingClientRect()}function Z(b,C){if(!C(b)){for(var A=b+"-2",I=3;!C(A);I++)A=b+"-".concat(I);return A}return b}function G(b){return Array.isArray(b)?b:[b]}U.d($,"g",function(){return V}),U.d($,"d",function(){return lt}),U.d($,"b",function(){return nt}),U.d($,"c",function(){return it}),U.d($,"e",function(){return Z}),U.d($,"a",function(){return G}),U.d($,"h",function(){return ut}),U.d($,"j",function(){return gt}),U.d($,"i",function(){return at}),U.d($,"f",function(){return P}),U.d($,"k",function(){return x});var ot=function(b){return Object.prototype.toString.call(b).match(/^\[object\s(.*)\]$/)[1]},ut=function(b){return ot(b)==="Function"},gt=function(b){return ot(b)==="String"};function at(b){var C=X(b);return b!=null&&(C==="object"||C==="function")}var P=function b(C,A){return ut(C)?b(C(A),A):C},x=function(b){return b===void 0}},function(B,$,U){"use strict";U.d($,"a",function(){return at});var X=U(6),V=U.n(X),lt=U(1);function nt(P,x){var b=Object.keys(P);if(Object.getOwnPropertySymbols){var C=Object.getOwnPropertySymbols(P);x&&(C=C.filter(function(A){return Object.getOwnPropertyDescriptor(P,A).enumerable})),b.push.apply(b,C)}return b}function it(P){for(var x=1;xP.length)&&(x=P.length);for(var b=0,C=new Array(x);b0&&arguments[0]!==void 0?arguments[0]:"",I=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];ot(this,P),gt(this,"strState",null),P.sharedElement||(P.sharedElement=document.createElement("div")),this.elem.setAttribute("style",A),I&&this._cleanStyle()}var x,b,C;return x=P,C=[{key:"fromObject",value:function(A){var I=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],S=function w(N,T,L){return Object.entries(N).map(function(z){var H=Z(z,2),Q=H[0],rt=H[1];return Q==="transform"&&Object(lt.i)(rt)?"".concat(Q,": ").concat(w(rt,function(q,Ot){return"".concat(q,"(").concat(Ot,")")}," ")):T(Q,rt)}).join(L)};return new P(S(A,function(w,N){return"".concat(w,": ").concat(N)},"; "),I)}},{key:"_objectifyTransformString",value:function(A){var I={};return A.split(") ").forEach(function(S){if(S.trim()){var w=Z(S.split("(").map(function(L){return V()(L,"() ")}),2),N=w[0],T=w[1];I[N]=T}}),I}},{key:"_transformObjectToString",value:function(A){return Object.entries(A).sort(P.transformSorter).map(function(I){var S=Z(I,2),w=S[0],N=S[1];return"".concat(w,"(").concat(N,")")}).join(" ")}},{key:"sortTransform",value:function(A){return P._transformObjectToString(new P("transform: ".concat(A)).toObject().transform)}},{key:"getNegativeTransform",value:function(A){var I=this;if(!A)return A;var S=this._objectifyTransformString(A);return Object.entries(S).map(function(w){var N=Z(w,2),T=N[0],L=N[1],z=I._extractTransformParams(L).map(function(H,Q){return T.startsWith("scale")?String(1/H.number):T==="rotate3d"&&Q!==3?"".concat(H.number).concat(H.unit):"".concat(-H.number).concat(H.unit)}).join(", ");return"".concat(T,"(").concat(z,")")}).join(" ")}},{key:"_extractTransformParams",value:function(A){var I=/[^0-9-.]/;return A.split(",").map(function(S){return S.trim()}).map(function(S){return{raw:S,number:parseFloat(S),unit:S.match(I)?S.substr(S.match(I).index):""}})}},{key:"transformSorter",value:function(A,I){var S=Z(A,1)[0],w=Z(I,1)[0],N=function(T){return S.startsWith(T)&&!w.startsWith(T)?-1:!S.startsWith(T)&&w.startsWith(T)?1:0};return N("translate")||N("scale")||0}}],(b=[{key:"toString",value:function(){return this.elem.getAttribute("style")}},{key:"toObject",value:function(){for(var A=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],I=this.elem.style,S={},w=0;w1&&arguments[1]!==void 0)||arguments[1],w=(A=A instanceof P?A:new P(A)).toObject();return Object.entries(w).forEach(function(N){var T=Z(N,2),L=T[0],z=T[1];if(L==="transform"){var H=I._mergeTransform(w.transform,S);I.elem.style.transform=Object.entries(H).sort(P.transformSorter).map(function(Q){var rt=Z(Q,2),q=rt[0],Ot=rt[1];return"".concat(q,"(").concat(Ot,")")}).join(" ")}else S&&I.elem.style[L]!==void 0&&(I.elem.style[L]=z)}),this}},{key:"addTransform",value:function(A){if(!A)return this;Object(lt.j)(A)&&(A=new P("transform: ".concat(A)).toObject().transform);var I=Object.entries(A).sort(P.transformSorter).reduce(function(S,w){var N=Z(w,2),T=N[0],L=N[1];if(S[T]){var z=P._extractTransformParams(L),H=P._extractTransformParams(S[T]);S[T]=z.map(function(Q,rt){if(Q.unit!==H[rt].unit&&H[rt].unit&&Q.unit)throw"unit mismatch: "+H[rt].unit+" | "+Q.unit;var q;return T==="rotate3d"&&rt<3?H[rt].number!==Q.number?console.error("trying to add rotation on different axis"):q=H[rt].number:q=T.startsWith("scale")?H[rt].number*Q.number:H[rt].number+Q.number,"".concat(q).concat(Q.unit||H[rt].unit)}).join(", ")}else S[T]=L;return S},this.toObject().transform||{});return this.elem.style.transform="",this.extend(P.fromObject({transform:I})),this}},{key:"_mergeTransform",value:function(A){var I=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];return Object.entries(A).reduce(function(S,w){var N=Z(w,2),T=N[0],L=N[1],z=["translate","scale","rotate"];if(z.some(function(Q){return[Q+"X",Q+"Y",Q+"Z"].includes(T)}))S[T.slice(0,-1)]&&!I||(S[T]=L);else if(z.includes(T)){var H=Object.keys(S);z.some(function(Q){return H.some(function(rt){return rt.startsWith(Q)})})&&!I||(S[T]=L)}else(S[T]===void 0||I)&&(S[T]=L);return S},it({},this.toObject().transform))}},{key:"_cleanStyle",value:function(){var A=this.toObject();if(A.transform){var I={translate:{},scale:{},rotate:{}},S=["X","Y","Z"];Object.entries(A.transform).forEach(function(w){var N=Z(w,2),T=N[0],L=N[1],z=Object.keys(I).find(function(H){return T.startsWith(H)});z&&(z===T||T===z+"3d"&&z!=="rotate"?P._extractTransformParams(L).forEach(function(H,Q){var rt=I[z][S[Q].toLowerCase()];rt?rt.unit===H.unit||!H.unit&&!H.number||!rt.unit&&!rt.number?z==="scale"?I[z][S[Q].toLowerCase()].number*=H.number:I[z][S[Q].toLowerCase()].number+=H.number:console.error("Transform conflict!",T):I[z][S[Q].toLowerCase()]=H}):T==="rotate3d"?I.rotate["3d"]=L:S.forEach(function(H){if(T===z+H){var Q=I[z][H.toLowerCase()],rt=P._extractTransformParams(L)[0];Q?Q.unit===rt.unit||!Q.unit&&!Q.number||!rt.unit&&!rt.number?z==="scale"?I[z][H.toLowerCase()].number*=rt.number:I[z][H.toLowerCase()].number+=rt.number:console.error("Transform conflict!",T):I[z][H.toLowerCase()]=rt}}))}),Object.keys(I).forEach(function(w){if(Object.keys(I[w]).length){A.transform=Object.fromEntries(Object.entries(A.transform).filter(function(T){return!Z(T,1)[0].startsWith(w)}));var N=Object.keys(I[w]).length;N>1||w==="rotate"&&!I[w]["3d"]?A.transform[w+(N===3?"3d":"")]=S.map(function(T){var L=I[w][T.toLowerCase()];if(L)return String(L.number+L.unit)}).filter(function(T){return!!T}).join(", "):S.forEach(function(T){var L=I[w][T.toLowerCase()];L&&(A.transform[w+T]=L.number+L.unit)})}I.rotate["3d"]&&(A.transform.rotate3d=I.rotate["3d"])}),this.elem.style.transform=P._transformObjectToString(A.transform)}}},{key:"elem",get:function(){return P.current!==this&&(P.current&&(P.current.strState=P.sharedElement.getAttribute("style")),P.sharedElement.setAttribute("style",this.strState),P.current=this),P.sharedElement}}])&&ut(x.prototype,b),C&&ut(x,C),P}();gt(at,"sharedElement",null),gt(at,"current",null)},function(B,$,U){"use strict";U.d($,"a",function(){return st});var X=U(1),V=U(0),lt=U(7),nt=U.n(lt),it=U(12),Z=U.n(it),G=U(2);function ot(l){return function(f){if(Array.isArray(f))return x(f)}(l)||function(f){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(f))return Array.from(f)}(l)||P(l)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function ut(l,f){var v=Object.keys(l);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(l);f&&(g=g.filter(function(o){return Object.getOwnPropertyDescriptor(l,o).enumerable})),v.push.apply(v,g)}return v}function gt(l,f,v){return f in l?Object.defineProperty(l,f,{value:v,enumerable:!0,configurable:!0,writable:!0}):l[f]=v,l}function at(l,f){return function(v){if(Array.isArray(v))return v}(l)||function(v,g){if(!(typeof Symbol=="undefined"||!(Symbol.iterator in Object(v)))){var o=[],u=!0,m=!1,p=void 0;try{for(var M,k=v[Symbol.iterator]();!(u=(M=k.next()).done)&&(o.push(M.value),!g||o.length!==g);u=!0);}catch(W){m=!0,p=W}finally{try{u||k.return==null||k.return()}finally{if(m)throw p}}return o}}(l,f)||P(l,f)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function P(l,f){if(l){if(typeof l=="string")return x(l,f);var v=Object.prototype.toString.call(l).slice(8,-1);return v==="Object"&&l.constructor&&(v=l.constructor.name),v==="Map"||v==="Set"?Array.from(l):v==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(v)?x(l,f):void 0}}function x(l,f){(f==null||f>l.length)&&(f=l.length);for(var v=0,g=new Array(f);v0&&arguments[0]!==void 0&&arguments[0],m=u?"getTransformPropertyNamesAt":"getPropertyNamesAt";return this.getTimeKeys().map(function(p){return o[m](p)}).reduce(function(p,M){return M.forEach(function(k){p.includes(k)||p.push(k)}),p},[])}},{key:"getAllTransformPropertyNames",value:function(){return this.getAllPropertyNames(!0)}},{key:"getFirstValues",value:function(){return this._getFirstOrLastValue(!0)}},{key:"getLastValues",value:function(){return this._getFirstOrLastValue(!1)}},{key:"_getFirstOrLastValue",value:function(){var o=this,u=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];return this.getTimeKeys().reduce(function(m,p){o.getPropertyNamesAt(p).forEach(function(ct){!Object(X.k)(m[ct])&&u||ct==="transform"||(m[ct]=o.getPropertyAt(p,ct))});var M=o.getPropertyAt(p,"transform"),k=u?{transform:M}:{transform:m.transform||""},W=u?{transform:m.transform||""}:{transform:M};return M&&(m.transform=G.a.fromObject(k).extend(G.a.fromObject(W)).toObject(!1).transform),m},{})}},{key:"normalize",value:function(){var o=this.getOffset(),u=100/this.getDuration();return this.rawTimeline=this.getEntries().reduce(function(m,p){var M=at(p,2),k=M[0],W=M[1];return m[String(((parseFloat(k)-o)*u).toFixed(2))]=W,m},{}),this}},{key:"getTimeKeys",value:function(){return Object.keys(this.rawTimeline).map(function(o){return parseFloat(o)}).sort(function(o,u){return ou?1:0})}},{key:"getEntries",value:function(){return Object.entries(this.rawTimeline).map(function(o){var u=at(o,2),m=u[0],p=u[1];return[parseFloat(m),p]}).sort(function(o,u){var m=at(o,1)[0],p=at(u,1)[0];return mp?1:0})}},{key:"getDuration",value:function(){var o=this.getTimeKeys();return o.slice(-1)[0]-o[0]}},{key:"getTotalDuration",value:function(){return this.getTimeKeys().slice(-1)[0]}},{key:"getOffset",value:function(){return this.getTimeKeys()[0]}},{key:"transform",value:function(o){var u=o.duration,m=u===void 0?null:u,p=o.delay,M=p===void 0?0:p;return m&&this.changeDuration(m),this.addOffset(M),this}},{key:"changeDuration",value:function(o){var u=this.getOffset(),m=o/this.getDuration();return this.rawTimeline=this.getEntries().reduce(function(p,M){var k=at(M,2),W=k[0],ct=k[1];return p[String(((parseFloat(W)-u)*m+u).toFixed(2))]=ct,p},{}),this}},{key:"addOffset",value:function(o){return this.rawTimeline=this.getEntries().reduce(function(u,m){var p=at(m,2),M=p[0],k=p[1];return u[(parseFloat(M)+o).toFixed(2)]=k,u},{}),this}},{key:"removeOffset",value:function(){var o=this.getOffset();return this.rawTimeline=this.getEntries().reduce(function(u,m){var p=at(m,2),M=p[0],k=p[1];return u[String((parseFloat(M)-o).toFixed(2))]=k,u},{}),this}},{key:"reverse",value:function(){var o=this.getOffset(),u=this.getDuration();return this.rawTimeline=this.getEntries().reverse().reduce(function(m,p){var M=at(p,2),k=M[0],W=M[1];return m[String((u-(parseFloat(k)-o)).toFixed(2))]=W,m},{}),this}},{key:"addTransform",value:function(o){return o?(this.rawTimeline=this.getEntries().reduce(function(u,m){var p=at(m,2),M=p[0],k=p[1],W=G.a.fromObject(k);return W.addTransform(o),u[M.toFixed(2)]=W.toObject(!1),u},{}),this):this}},{key:"subtractTransform",value:function(o){return this.addTransform(G.a.getNegativeTransform(o))}}])&&b(f.prototype,v),g&&b(f,g),l}();function A(l,f){var v=Object.keys(l);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(l);f&&(g=g.filter(function(o){return Object.getOwnPropertyDescriptor(l,o).enumerable})),v.push.apply(v,g)}return v}function I(l){return function(f){if(Array.isArray(f))return S(f)}(l)||function(f){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(f))return Array.from(f)}(l)||function(f,v){if(!!f){if(typeof f=="string")return S(f,v);var g=Object.prototype.toString.call(f).slice(8,-1);if(g==="Object"&&f.constructor&&(g=f.constructor.name),g==="Map"||g==="Set")return Array.from(f);if(g==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(g))return S(f,v)}}(l)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function S(l,f){(f==null||f>l.length)&&(f=l.length);for(var v=0,g=new Array(f);v0&&arguments[0]!==void 0?arguments[0]:{},u=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];this.getAnimation()._recompose(o,u),this._replaceAnimation(this.getAnimation())}},{key:"_saveTargetElementOriginalStyle",value:function(){this.originalElementStyle=this.targetElement.getAttribute("style"),this.targetElement.originalElementStyle=this.originalElementStyle,this.targetElement.scrollParent=Object(X.d)(this.targetElement)}},{key:"_seekToViewportPosition",value:function(){if(this.getAnimation().manager.libOptions.jitAnimation&&!Object(X.g)(this.targetElement,0,!0))this.seekToEnd();else{var o=this.targetElement.scrollParent===Object(X.b)(),u=o?window.innerHeight:this.targetElement.scrollParent.clientHeight,m=Object(X.c)(this.targetElement),p=Object(X.c)(this.targetElement.scrollParent),M=o?m.top:m.top-p.top,k=function(pt){for(var yt=1;ytl.length)&&(f=l.length);for(var v=0,g=new Array(f);v1&&arguments[1]!==void 0&&arguments[1];if(Object(X.j)(o))return this._getMultiInstanceAPI(Array.from(document.querySelectorAll(o)).reduce(function(k,W){return k.push(u.apply(W)),k},[]));var p=this.manager.getInstancesByElement(o).filter(function(k){return k.getAnimation().getTrigger()===u.getTrigger()});p.forEach(function(k){k.remove(),u.manager._removeInstance(k)});var M=new T(this,o,this.manager.EngineClass);return this._registerInstance(M,m),M}},{key:"createVariation",value:function(o){var u=this.manager.createAnimation(q(q(q({},this.descriptor),o),{},{options:q({},this.getOptions())}));return u.setOptions(o.options||{}),u.compositionType=this.compositionType,u.subAnimations=L(this.subAnimations),u}},{key:"setEffect",value:function(o){var u,m=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];return(Object(X.j)(o)||Object(X.h)(o))&&(this.originalEffect=o),Object(X.j)(o)&&this.descriptor&&(this.descriptor.effect=o),this.effect=Object(X.j)(o)?this.manager._getEffect(o,q(q({},((u=this.manager._getEffect(o))===null||u===void 0?void 0:u.defaultOptions)||{}),this.getOptions())):o,m&&this.resetAllInstances(),this}},{key:"getEffect",value:function(){return this.descriptor.effect&&Object(X.j)(this.descriptor.effect)?this.descriptor.effect:this.originalEffect}},{key:"setTrigger",value:function(o){return this.descriptor.trigger=o,this._updateTimeline(),this}},{key:"setOptions",value:function(o){var u=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];return o.duration==="auto"&&this._isAtomic&&(o=q(q({},o),{},{duration:this.getDuration()})),o.duration==="auto"||this._isAtomic||(this.autoDuration=!1),this.descriptor.options=q(q({},this.descriptor.options),o),this._updateInstances(),this._updateTimeline(),u&&this.resetAllInstances(),this}},{key:"resetAllInstances",value:function(){this.manager.getInstancesByAnimation(this).forEach(function(o){o.reset()})}},{key:"contains",value:function(o){return this.subAnimations.includes(o)||this.subAnimations.some(function(u){return u.contains(o)})}},{key:"reverse",value:function(){return this.setOptions({reverse:!this.getOptions().reverse}),this}},{key:"setName",value:function(o){return this.descriptor.name=o,this._updateTimeline(),this}},{key:"getName",value:function(){return this.descriptor.name||(this._isAtomic?this.originalEffect:this.compositionType)}},{key:"setDelay",value:function(o){return this.setOptions({delay:o}),this}},{key:"setDuration",value:function(o){return this.setOptions({duration:o}),this}},{key:"join",value:function(o){var u=arguments.length>1&&arguments[1]!==void 0&&arguments[1];return this._compose(V.a.JOIN,o,u)}},{key:"mix",value:function(o){var u=arguments.length>1&&arguments[1]!==void 0&&arguments[1];return this._compose(V.a.MIX,o,u)}},{key:"getChild",value:function(o){return Object(X.j)(o)?this.subAnimations.find(function(u){return u.getName()===o}):this.subAnimations[o]?this.subAnimations[o]:void 0}},{key:"getOption",value:function(o){return this.descriptor.options[o]||null}},{key:"getSub",value:function(o){var u=this.getChild(o);return u||((u=this.subAnimations.find(function(m){return m.getSub(o)}))?u.getSub(o):void 0)}},{key:"insertChildAfter",value:function(o,u){var m=this.subAnimations.indexOf(u);if(m!==-1)return this.insertChild(o,m+1),!0}},{key:"insertChild",value:function(o,u){if(!this._isAtomic)if(o instanceof l)this.subAnimations.splice(u,0,o),this.resetAllInstances();else{var m=this.manager.createAnimation(o);m&&(this.subAnimations.splice(u,0,m),this.resetAllInstances())}}},{key:"removeChild",value:function(o){if(this.contains(o))return this.subAnimations.includes(o)?this.subAnimations.splice(this.subAnimations.indexOf(o),1):this.subAnimations.find(function(m){return m.contains(o)}).removeChild(o),this.subAnimations.length===1?this._replace(this.subAnimations[0]):this.setDuration(this.getDuration()-o.getDuration()),this.resetAllInstances(),!0;var u=this.getChild(o);u&&this.removeChild(u)}},{key:"getController",value:function(){if(this.manager._getExtra("getController",!0))return this.manager._getExtra("getController")(this)}},{key:"showComposition",value:function(){this.manager._getExtra("showComposition",!0)&&this.manager._getExtra("showComposition")(this)}},{key:"_updateTimeline",value:function(){this.manager._getExtra("updateTimeline")&&this.manager._getExtra("updateTimeline")(this)}},{key:"_registerInstance",value:function(o){var u=arguments.length>1&&arguments[1]!==void 0&&arguments[1];this.manager._addInstance(o,u)}},{key:"_getTimeline",value:function(){var o,u=q(q({},this.effect.defaultOptions||{}),this.getOptions());if(this.effect.timeline?o=this.effect.timeline instanceof C?this.effect.timeline.rawTimeline:Object(X.f)(this.effect.timeline,u):this.effect.tween&&(o=C.fromTween(Object(X.f)(this.effect.tween,u)).rawTimeline),o){var m=new C(o);return this.getOptions().arrive&&m.subtractTransform(m.getLastValues().transform),this.getOptions().reverse?m.reverse():m}return null}},{key:"_getMultiInstanceAPI",value:function(o){var u=this;return Object.getOwnPropertyNames(T.prototype).reduce(function(m,p){return p==="constructor"||p.startsWith("_")||p==="getAnimation"||(m[p]=function(){for(var M=arguments.length,k=new Array(M),W=0;W1&&arguments[1]!==void 0&&arguments[1];return this.descriptor=o,this.setEffect(this.descriptor.effect,u),this}},{key:"_replace",value:function(o){var u=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];return this._replaceDescriptor(o.descriptor),l._copy(o,this),u&&this.resetAllInstances(),this}},{key:"_recompose",value:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(this._isAtomic)this.copyOf?this._replaceDescriptor(q(q(q({},this.getOriginal().descriptor),this.descriptor),{},{options:q(q({},this.getOriginal().getOptions()),this.getOptions())})):this._resetEffect();else{this.subAnimations.forEach(function(m){return m._recompose()});var u=this.manager._compose(this.compositionType,this.subAnimations,{trigger:o.trigger||this.getTrigger(),name:o.name||this.getName(),options:q(q({},this.getOptions()),o.options)});this._replace(u,!1)}return this._updateTimeline(),this}},{key:"_compose",value:function(o,u){var m=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(u=l._getAnimationsArray(this.manager,Object(X.a)(u)),this.compositionType===o){var p;if(m)return(p=this.subAnimations).push.apply(p,L(u)),this._recompose();var M,k=this.clone();return(M=k.subAnimations).push.apply(M,L(u)),k._recompose()}var W=this.manager._compose(o,[this.clone()].concat(L(u)));return W.setDuration(this.autoDuration?"auto":this.getDuration()),m?(this._replace(W),this):W}},{key:"_updateInstances",value:function(){this.manager.getInstancesByAnimation(this).forEach(function(o){o._update()})}},{key:"_resetEffect",value:function(){var o=arguments.length>0&&arguments[0]!==void 0&&arguments[0];this.originalEffect&&this.setEffect(this.originalEffect,o)}},{key:"_isAtomic",get:function(){return this.compositionType===V.a.ATOMIC}}])&&Ot(f.prototype,v),g&&Ot(f,g),l}();function $t(l,f){var v=Object.keys(l);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(l);f&&(g=g.filter(function(o){return Object.getOwnPropertyDescriptor(l,o).enumerable})),v.push.apply(v,g)}return v}function wt(l){for(var f=1;f0&&arguments[0]!==void 0?arguments[0]:null,m=u||this.manager.getInstancesByTrigger(V.g.ENTRANCE);m.forEach(function(p){p.didPlay||(o.manager.libOptions.jitAnimation?(p.visibilityPriority=Object(X.k)(p.visibilityPriority)?p.targetElement.style.getPropertyPriority("visibility"):p.visibilityPriority,p.targetElement.style.visibility="hidden",p.seekToEnd()):p.seek(0),Object(X.g)(p.targetElement,0,!0)&&(o.manager.libOptions.jitAnimation&&(p.seek(0),p.targetElement.style.setProperty("visibility","visible",p.visibilityPriority)),m.length>20?requestAnimationFrame(function(){return p.play()}):p.play()))})}},{key:"_driveViewportDrivenAnimations",value:function(o){var u=this;this.manager.getInstancesByTrigger(V.c.VIEWPORT).filter(function(m){return m.targetElement.scrollParent===Object(X.b)()&&[document,Object(X.b)(),window].includes(o.target)?u.manager.libOptions.jitAnimation||Object(X.g)(m.targetElement,0,!0):m.targetElement.scrollParent===o.target}).forEach(function(m){m._seekToViewportPosition()})}}])&&ft(f.prototype,v),g&&ft(f,g),l}();function Gt(l,f){var v=Object.keys(l);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(l);f&&(g=g.filter(function(o){return Object.getOwnPropertyDescriptor(l,o).enumerable})),v.push.apply(v,g)}return v}function Qt(l){for(var f=1;fl.length)&&(f=l.length);for(var v=0,g=new Array(f);v0&&arguments[0]!==void 0?arguments[0]:{};K(this,l),tt(this,"EngineClass",null),tt(this,"effects",{}),tt(this,"animationInstances",[]),tt(this,"disabled",!1),this.setEngine(l.SceneEngine?"scenejs":"animejs"),zt(this),this.libOptions=o,this.dispatcher=new Tt(this),this._scanDomForAnimations(),this._activate()}var f,v,g;return f=l,(v=[{key:"setEngine",value:function(o){var u=l[o===V.d.SCENE?"SceneEngine":o===V.d.ANIME?"AnimeEngine":null];if(!u)throw"Failed to load engine";this.EngineClass=u}},{key:"reset",value:function(){O(this.animationInstances).forEach(function(o){o.reset()})}},{key:"defineEffect",value:function(o,u){this.effects[o]=u}},{key:"getAllEffectNames",value:function(){return Object.keys(this.effects)}},{key:"getOptionsForEffect",value:function(o){var u=arguments.length>1&&arguments[1]!==void 0&&arguments[1],m=this._getEffect(o);return u?m.defaultOptions||{}:Object.fromEntries(Object.entries(m.defaultOptions||{}).filter(function(p){var M=qt(p,1)[0];return!V.e[M]}))}},{key:"getInstancesByElement",value:function(o){return this._filterInstances(function(u){return u.targetElement===o})}},{key:"mix",value:function(o){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this._compose(V.a.MIX,o,u)}},{key:"join",value:function(o){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this._compose(V.a.JOIN,o,u)}},{key:"animate",value:function(o){var u=this;return function(m){return m instanceof It?m.apply(o):u.createAnimation(m).apply(o)}}},{key:"createAnimation",value:function(o){var u=this;return function m(p){var M=function(k){return k[V.a.JOIN]?V.a.JOIN:k[V.a.MIX]?V.a.MIX:null};if(M(p))return u[M(p)](p[M(p)].map(function(k){return k instanceof It?k:M(k)?m(k):new It(u,k)}));if(p.effect)return new It(u,p);throw"Illegal composition structure"}(o)}},{key:"composeTimelines",value:function(o){var u=this,m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:V.a.MIX,p=Object.entries(o).map(function(M){var k=qt(M,2),W=k[0],ct=k[1];return u.createAnimation({effect:W,options:ct})});return this.createAnimation(tt({},m,p))._getTimeline().rawTimeline}},{key:"cleanDOM",value:function(){this.animationInstances.forEach(function(o){return o.cleanElement()})}},{key:"disable",value:function(){this.disabled=!0,this.cleanDOM()}},{key:"enable",value:function(){this.disabled=!1,this.animationInstances.filter(function(o){return o.getAnimation().getTrigger()!==V.g.ENTRANCE}).forEach(function(o){return o.reset()})}},{key:"removeAll",value:function(){O(this.animationInstances).forEach(function(o){return o.remove()})}},{key:"destroy",value:function(){this.removeAll(),this.dispatcher.removeListeners()}},{key:"getInstancesByAnimation",value:function(o){return this._filterInstances(function(u){return u.getAnimation()===o||u.getAnimation().contains(o)||u.getAnimation().copyOf===o})}},{key:"getInstancesByTrigger",value:function(o){return this._filterInstances(function(u){return u.getAnimation().getTrigger()===o})}},{key:"getInstancesByEffect",value:function(o){return this._filterInstances(function(u){return u.getAnimation().descriptor.effect===o})}},{key:"_writeDescriptorsToElement",value:function(o){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],m=this.getInstancesByElement(o).map(function(p){return p.getAnimation()}).filter(function(p){return!u.includes(p)}).concat(u).map(function(p){return p.getDescriptor()});o.setAttribute(V.b,btoa(JSON.stringify(m)))}},{key:"_filterInstances",value:function(o){return this.animationInstances.filter(o)}},{key:"_addInstance",value:function(o){var u=arguments.length>1&&arguments[1]!==void 0&&arguments[1];this.animationInstances.includes(o)||(this.animationInstances.push(o),u||this._activate(),this.dispatcher.addScrollListener(o.targetElement))}},{key:"_compose",value:function(o,u){var m,p,M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};u=It._getAnimationsArray(this,Object(X.a)(u));var k=M.trigger||u[0].getTrigger(),W=u.map(function(yt){return yt._getTimeline().normalize().transform({duration:yt.getDuration(),delay:yt.getOptions().delay})}),ct=C[o](W),xt=((m=M.options)===null||m===void 0?void 0:m.arrive)||u[0].getOptions().arrive;xt&&ct.subtractTransform(ct.getLastValues().transform);var pt=this.createAnimation({trigger:k,name:M.name,effect:{timeline:ct.removeOffset()},options:Qt({duration:ct.getDuration(),delay:ct.getOffset(),viewportThresholds:u[0].getOptions().viewportThresholds},M.options)});return pt.compositionType=o,pt.subAnimations=O(u),pt.setDuration(((p=M.options)===null||p===void 0?void 0:p.duration)||"auto"),pt}},{key:"_getExtra",value:function(o){var u=arguments.length>1&&arguments[1]!==void 0&&arguments[1],m=window[Symbol.for("DAM.EXTRAS")],p=m&&m[o]?m[o]:null;return!p&&u&&console.error("extras module is needed for ",o),p}},{key:"_activate",value:function(){this.dispatcher._activateEntranceAnimationsInViewport(),this._activateAlwaysRunningAnimations(),this._initViewportAnimations(),this._initHoverAnimations()}},{key:"_syncInstance",value:function(o){o.getAnimation().getTrigger()===V.g.ENTRANCE?this.dispatcher._activateEntranceAnimationsInViewport([o]):o.getAnimation().getTrigger()===V.c.VIEWPORT&&o._seekToViewportPosition()}},{key:"_removeInstance",value:function(o){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,m=this.animationInstances.indexOf(o);if(m>=0){var p,M=[m,1];u&&M.push(u),(p=this.animationInstances).splice.apply(p,M),this.dispatcher.removeScrollListener(o.targetElement),u&&this.dispatcher.addScrollListener(u.targetElement)}}},{key:"_replaceInstance",value:function(o,u){this._removeInstance(o,u)}},{key:"_getHoverInstancesForElement",value:function(o){return this.getInstancesByTrigger(V.g.HOVER).filter(function(u){return u.targetElement===o})}},{key:"_initHoverAnimations",value:function(){this.getInstancesByTrigger(V.g.HOVER).forEach(function(o){return o.seek(0)})}},{key:"_initViewportAnimations",value:function(){this.disabled||this.getInstancesByTrigger(V.c.VIEWPORT).forEach(function(o){return o._seekToViewportPosition()})}},{key:"_activateAlwaysRunningAnimations",value:function(){var o=this.getInstancesByTrigger(V.g.ALWAYS);this._runAnimations(o)}},{key:"_scanDomForAnimations",value:function(){var o=this;document.querySelectorAll("[".concat(V.b,"]")).forEach(function(u){JSON.parse(atob(u.getAttribute(V.b))).forEach(function(m){var p;p=o.createAnimation(m),o._addInstance(p.apply(u))})})}},{key:"_runAnimations",value:function(o){o.forEach(function(u){u.play()})}},{key:"_stopAnimations",value:function(o){o.forEach(function(u){u.pauseOnIterationEnd()})}},{key:"_getEffect",value:function(o){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(Object(X.j)(o)){var m=Object(X.f)(this.effects[o],u);if(!m)throw"Unknown effect: "+o;return m}return o}}])&&D(f.prototype,v),g&&D(f,g),l}();tt(st,"SceneEngine",null),tt(st,"AnimeEngine",null)},,function(B,$,U){"use strict";U.d($,"a",function(){return lt});var X=U(0);function V(nt,it){for(var Z=0;Z-1}function ot(O,_,R){for(var K=-1,D=O?O.length:0;++K-1&&K%1==0&&K<=9007199254740991}(R.length)&&!Qt(R)}(_)}(O)?O:[]}function ft(O,_){var R,K,D=O.__data__;return((K=typeof(R=_))=="string"||K=="number"||K=="symbol"||K=="boolean"?R!=="__proto__":R===null)?D[typeof _=="string"?"string":"hash"]:D.map}function Yt(O,_){var R=function(K,D){return K==null?void 0:K[D]}(O,_);return ae(R)?R:void 0}Ot.prototype.clear=function(){this.__data__=q?q(null):{}},Ot.prototype.delete=function(O){return this.has(O)&&delete this.__data__[O]},Ot.prototype.get=function(O){var _=this.__data__;if(q){var R=_[O];return R==="__lodash_hash_undefined__"?void 0:R}return N.call(_,O)?_[O]:void 0},Ot.prototype.has=function(O){var _=this.__data__;return q?_[O]!==void 0:N.call(_,O)},Ot.prototype.set=function(O,_){return this.__data__[O]=q&&_===void 0?"__lodash_hash_undefined__":_,this},At.prototype.clear=function(){this.__data__=[]},At.prototype.delete=function(O){var _=this.__data__,R=wt(_,O);return!(R<0)&&(R==_.length-1?_.pop():z.call(_,R,1),!0)},At.prototype.get=function(O){var _=this.__data__,R=wt(_,O);return R<0?void 0:_[R][1]},At.prototype.has=function(O){return wt(this.__data__,O)>-1},At.prototype.set=function(O,_){var R=this.__data__,K=wt(R,O);return K<0?R.push([O,_]):R[K][1]=_,this},It.prototype.clear=function(){this.__data__={hash:new Ot,map:new(rt||At),string:new Ot}},It.prototype.delete=function(O){return ft(this,O).delete(O)},It.prototype.get=function(O){return ft(this,O).get(O)},It.prototype.has=function(O){return ft(this,O).has(O)},It.prototype.set=function(O,_){return ft(this,O).set(O,_),this},$t.prototype.add=$t.prototype.push=function(O){return this.__data__.set(O,"__lodash_hash_undefined__"),this},$t.prototype.has=function(O){return this.__data__.has(O)};var St,Tt,Gt=(St=function(O){var _=ut(O,zt);return _.length&&_[0]===O[0]?function(R,K,D){for(var tt=D?ot:G,st=R[0].length,l=R.length,f=l,v=Array(l),g=1/0,o=[];f--;){var u=R[f];f&&K&&(u=ut(u,at(K))),g=Q(u.length,g),v[f]=!D&&(K||st>=120&&u.length>=120)?new $t(f&&u):void 0}u=R[0];var m=-1,p=v[0];t:for(;++m0&&arguments[0]!==void 0&&arguments[0],L=this.getTargetElement();["startAnimation","pauseAnimation"].forEach(function(z){L.classList.contains(z)&&L.classList.remove(z)}),T&&this.instance._restoreElementStyle()}},{key:"_removeStyleSheet",value:function(){if(this.ref){var T=document.querySelector("#__SCENEJS_STYLE_".concat(this.ref.getId()));T&&T.remove()}}},{key:"seek",value:function(T){this._resetCSSAnim(),this.ref.setTime(T)}},{key:"getTime",value:function(){return this.ref.getTime()}},{key:"isPlaying",value:function(){return this.ref&&this.ref.getPlayState()==="running"}},{key:"kill",value:function(){this._resetCSSAnim(!0),this._removeClass(),this._removeStyleSheet()}},{key:"_addClass",value:function(){var T=this.getTargetElement();T.classList.contains(this.className)||T.classList.add(this.className)}},{key:"cleanElement",value:function(){this._resetCSSAnim(!0),this._removeClass(),this._removeStyleSheet()}},{key:"_removeClass",value:function(){var T=this.getTargetElement();T.classList.contains(this.className)&&(T.classList.remove(this.className),T.classList.length||T.removeAttribute("class"))}}],[{key:"disableCSSAnimation",value:function(){this.cssAnimationDisabled=!0}},{key:"enableCSSAnimation",value:function(){this.cssAnimationDisabled=!1}}]),N}(it.a);A(I,"cssAnimationDisabled",!0)},function(V,lt){V.exports=X},,,,,function(V,lt,nt){"use strict";nt.r(lt);var it=nt(10),Z=nt(3);nt.d(lt,"DudaAnimationManager",function(){return Z.a}),Z.a.SceneEngine=it.a}])})},"Of+w":function(kt,vt,B){var $=B("Cwc5"),U=B("Kz5y"),X=$(U,"WeakMap");kt.exports=X},QqLw:function(kt,vt,B){var $=B("tadb"),U=B("ebwN"),X=B("HOxn"),V=B("yGk4"),lt=B("Of+w"),nt=B("NykK"),it=B("3Fdi"),Z="[object Map]",G="[object Object]",ot="[object Promise]",ut="[object Set]",gt="[object WeakMap]",at="[object DataView]",P=it($),x=it(U),b=it(X),C=it(V),A=it(lt),I=nt;($&&I(new $(new ArrayBuffer(1)))!=at||U&&I(new U)!=Z||X&&I(X.resolve())!=ot||V&&I(new V)!=ut||lt&&I(new lt)!=gt)&&(I=function(S){var w=nt(S),N=w==G?S.constructor:void 0,T=N?it(N):"";if(T)switch(T){case P:return at;case x:return Z;case b:return ot;case C:return ut;case A:return gt}return w}),kt.exports=I},UiZK:function(kt,vt,B){(function($){var U=1/0,X="[object Symbol]",V=/^\s+|\s+$/g,lt="\\ud800-\\udfff",nt="\\u0300-\\u036f\\ufe20-\\ufe23",it="\\u20d0-\\u20f0",Z="\\ufe0e\\ufe0f",G="["+lt+"]",ot="["+nt+it+"]",ut="\\ud83c[\\udffb-\\udfff]",gt="(?:"+ot+"|"+ut+")",at="[^"+lt+"]",P="(?:\\ud83c[\\udde6-\\uddff]){2}",x="[\\ud800-\\udbff][\\udc00-\\udfff]",b="\\u200d",C=gt+"?",A="["+Z+"]?",I="(?:"+b+"(?:"+[at,P,x].join("|")+")"+A+C+")*",S=A+C+I,w="(?:"+[at+ot+"?",ot,P,x,G].join("|")+")",N=RegExp(ut+"(?="+ut+")|"+w+S,"g"),T=RegExp("["+b+lt+nt+it+Z+"]"),L=typeof $=="object"&&$&&$.Object===Object&&$,z=typeof self=="object"&&self&&self.Object===Object&&self,H=L||z||Function("return this")();function Q(D){return D.split("")}function rt(D,tt,st,l){for(var f=D.length,v=st+(l?1:-1);l?v--:++v-1;);return st}function It(D,tt){for(var st=D.length;st--&&q(tt,D[st],0)>-1;);return st}function $t(D){return T.test(D)}function wt(D){return $t(D)?ae(D):Q(D)}function ae(D){return D.match(N)||[]}var zt=Object.prototype,ft=zt.toString,Yt=H.Symbol,St=Yt?Yt.prototype:void 0,Tt=St?St.toString:void 0;function Gt(D,tt,st){var l=-1,f=D.length;tt<0&&(tt=-tt>f?0:f+tt),st=st>f?f:st,st<0&&(st+=f),f=tt>st?0:st-tt>>>0,tt>>>=0;for(var v=Array(f);++l=l?D:Gt(D,tt,st)}function O(D){return!!D&&typeof D=="object"}function _(D){return typeof D=="symbol"||O(D)&&ft.call(D)==X}function R(D){return D==null?"":Qt(D)}function K(D,tt,st){if(D=R(D),D&&(st||tt===void 0))return D.replace(V,"");if(!D||!(tt=Qt(tt)))return D;var l=wt(D),f=wt(tt),v=At(l,f),g=It(l,f)+1;return qt(l,v,g).join("")}kt.exports=K}).call(this,B("yLpj"))},pcmO:function(kt,vt,B){"use strict";B.r(vt),B.d(vt,"Animator",function(){return Yn}),B.d(vt,"EASE",function(){return hn}),B.d(vt,"EASE_IN",function(){return vn}),B.d(vt,"EASE_IN_OUT",function(){return gn}),B.d(vt,"EASE_OUT",function(){return mn}),B.d(vt,"EVENTS",function(){return Un}),B.d(vt,"FIXED",function(){return fe}),B.d(vt,"Frame",function(){return Kn}),B.d(vt,"LINEAR",function(){return ln}),B.d(vt,"NAME_SEPARATOR",function(){return be}),B.d(vt,"OPTIONS",function(){return Tn}),B.d(vt,"ROLES",function(){return Le}),B.d(vt,"STEP_END",function(){return ee}),B.d(vt,"STEP_START",function(){return fn}),B.d(vt,"SceneItem",function(){return kn}),B.d(vt,"animate",function(){return ur}),B.d(vt,"animateItem",function(){return cr}),B.d(vt,"bezier",function(){return ue}),B.d(vt,"isRole",function(){return d}),B.d(vt,"setAlias",function(){return Xn}),B.d(vt,"setRole",function(){return wn}),B.d(vt,"steps",function(){return Re});var $="rgb",U="rgba",X="hsl",V="hsla",lt=[$,U,X,V],nt="function",it="property",Z="array",G="object",ot="string",ut="number",gt="undefined",at=typeof window!==gt,P=typeof document!==gt&&document,x=["webkit","ms","moz","o"],b=function(r){if(!P)return"";var i=(P.body||P.documentElement).style,e=x.length;if(typeof i[r]!==gt)return r;for(var t=0;t-1&&(c=At(a,i,n+1,t)),c===-1)break;n=c}return-1}function It(r,i){for(var e="(\\s*"+(i||",")+`\\s*|\\(|\\)|"|'|\\\\"|\\\\'|\\s+)`,t=new RegExp(e,"g"),n=r.split(t).filter(Boolean),a=n.length,c=[],h=[],y=0;y-1)F=At(j,n,y+1,a);else if(j===i){h.length&&(c.push(h.join("")),h=[]);continue}}F===-1&&(F=a-1),h.push(n.slice(y,F+1).join("")),y=F}return h.length&&c.push(h.join("")),c}function $t(r){return It(r,"")}function wt(r){return It(r,",")}function ae(r){var i=/([^(]*)\(([\s\S]*)\)([\s\S]*)/g.exec(r);return!i||i.length<4?{}:{prefix:i[1],value:i[2],suffix:i[3]}}function zt(r){var i=/^([^\d|e|\-|\+]*)((?:\d|\.|-|e-|e\+)+)(\S*)$/g.exec(r);if(!i)return{prefix:"",unit:"",value:NaN};var e=i[1],t=i[2],n=i[3];return{prefix:e,unit:n,value:parseFloat(t)}}function ft(r){return r.replace(/[\s-_]([a-z])/g,function(i,e){return e.toUpperCase()})}function Yt(r,i){return i===void 0&&(i="-"),r.replace(/([a-z])([A-Z])/g,function(e,t,n){return""+t+i+n.toLowerCase()})}function St(r){return[].slice.call(r)}function Tt(){return Date.now?Date.now():new Date().getTime()}function Gt(r,i,e){e===void 0&&(e=-1);for(var t=r.length,n=0;n-1?r[t]:e}var qt=function(){var r=Tt(),i=at&&(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame);return i?i.bind(window):function(e){var t=Tt(),n=window.setTimeout(function(){e(t-r)},1e3/60);return n}}(),O=function(){var r=at&&(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame);return r?r.bind(window):function(i){clearTimeout(i)}}();function _(r){if(Object.keys)return Object.keys(r);var i=[];for(var e in i)i.push(e);return i}function R(r,i){i===void 0&&(i=[]),r.sort(function(e,t){var n=i.indexOf(e),a=i.indexOf(t);return a===-1&&n===-1?0:n===-1?1:a===-1?-1:n-a})}function K(r,i){var e=zt(r),t=e.value,n=e.unit;if(H(i)){var a=i[n];if(a){if(Ot(a))return a(t);if(T[n])return T[n](t,a)}}else if(n==="%")return t*i/100;return T[n]?T[n](t):t}function D(r,i,e){return Math.max(i,Math.min(r,e))}function tt(r,i){return i?Math.round(r/i)*i:r}function st(r,i,e){return[[tt(i[0],N),tt(i[0]*r[1]/r[0],N)],[tt(i[1]*r[0]/r[1],N),tt(i[1],N)]].filter(function(t){return t.every(function(n,a){return e?n<=i[a]:n>=i[a]})})[0]||r}function l(r,i,e,t){if(!t)return r.map(function(et,ht){return D(et,i[ht],e[ht])});var n=r[0],a=r[1],c=st(r,i,!1),h=c[0],y=c[1],j=st(r,e,!0),F=j[0],J=j[1];return nF||a>J)&&(n=F,a=J),[n,a]}function f(r){for(var i=r.length,e=0,t=i-1;t>=0;--t)e+=r[t];return e}function v(r){for(var i=r.length,e=0,t=i-1;t>=0;--t)e+=r[t];return i?e/i:0}function g(r,i){var e=i[0]-r[0],t=i[1]-r[1],n=Math.atan2(t,e);return n>=0?n:n+Math.PI*2}function o(r){return[0,1].map(function(i){return v(r.map(function(e){return e[i]}))})}function u(r){var i=o(r),e=g(i,r[0]),t=g(i,r[1]);return et&&t-e<-Math.PI?1:-1}function m(r,i){return Math.sqrt(Math.pow((i?i[0]:0)-r[0],2)+Math.pow((i?i[1]:0)-r[1],2))}function p(r){return r.replace("#","")}function M(r){var i=p(r),e=parseInt(i.substring(0,2),16),t=parseInt(i.substring(2,4),16),n=parseInt(i.substring(4,6),16),a=parseInt(i.substring(6,8),16)/255;return isNaN(a)&&(a=1),[e,t,n,a]}function k(r){var i=r.charAt(1),e=r.charAt(2),t=r.charAt(3),n=r.charAt(4),a=["#",i,i,e,e,t,t,n,n];return a.join("")}function W(r){var i,e=r[0],t=r[1],n=r[2];e<0&&(e+=Math.floor((Math.abs(e)+360)/360)*360),e%=360;var a=(1-Math.abs(2*n-1))*t,c=a*(1-Math.abs(e/60%2-1)),h=n-a/2,y;return e<60?y=[a,c,0]:e<120?y=[c,a,0]:e<180?y=[0,a,c]:e<240?y=[0,c,a]:e<300?y=[c,0,a]:e<360?y=[a,0,c]:y=[0,0,0],[Math.round((y[0]+h)*255),Math.round((y[1]+h)*255),Math.round((y[2]+h)*255),(i=r[3])!==null&&i!==void 0?i:1]}function ct(r){if(r.charAt(0)==="#")return r.length===4||r.length===5?M(k(r)):M(r);if(r.indexOf("(")!==-1){var i=ae(r),e=i.prefix,t=i.value;if(!e||!t)return;var n=wt(t),a=[0,0,0,1],c=n.length;switch(e){case $:case U:for(var h=0;h-1&&a.splice(c,1)}}return this},i.once=function(e,t){var n=this;return t&&this._addEvent(e,t,{once:!0}),new Promise(function(a){n._addEvent(e,a,{once:!0})})},i.emit=function(e,t){var n=this;t===void 0&&(t={});var a=this._events[e];if(!e||!a)return!0;var c=!1;return t.eventType=e,t.stop=function(){c=!0},t.currentTarget=this,se(a).forEach(function(h){h.listener(t),h.once&&n.off(e,h.listener)}),!c},i.trigger=function(e,t){return t===void 0&&(t={}),this.emit(e,t)},i._addEvent=function(e,t,n){var a=this._events;a[e]=a[e]||[];var c=a[e];c.push(oe({listener:t},n))},r}(),Mn=Cn,He=function(){function r(e){this.separator=e,this.orderMap={}}var i=r.prototype;return i.getFullName=function(e){return e.join(this.separator)},i.get=function(e){return this.orderMap[this.getFullName(e)]},i.gets=function(e,t){t===void 0&&(t=!0);var n=[],a=this;function c(h,y){var j=a.get(h);if(!!j)return j.forEach(function(F){var J=y.concat([F]),et=c(h.concat([F]),J);(!et||!et.length)&&n.push(y.concat([F]))}),j}return c(e,t?e:[]),n},i.set=function(e,t){var n=this;return e.forEach(function(a,c){n.addName(e.slice(0,c),a)}),this.orderMap[this.getFullName(e)]=t,t},i.add=function(e){var t=e.length;return t?this.addName(e.slice(0,-1),e[t-1]):[]},i.addName=function(e,t){var n=this.get(e)||this.set(e,[]);return n.indexOf(t)===-1&&n.push(t),n},i.findIndex=function(e,t){var n=this.orderMap[this.getFullName(e)];return n?n.indexOf(t):-1},i.remove=function(e){var t=this.getFullName(e),n=this.orderMap;for(var a in n)a.indexOf(t)===0&&delete n[a];var c=e.length;if(c){var h=e.slice(0,-1),y=e[c-1];this.splice(h,this.findIndex(h,y),1)}return this},i.filter=function(e,t,n){n===void 0&&(n=!0);var a=this.gets(e,n).filter(t),c=new r(this.separator),h=n?[]:e;return a.forEach(function(y){c.add(h.concat(y))}),c},i.splice=function(e,t,n){for(var a=[],c=3;c>>0}var Ke=We;function $e(r){return Ke(r).toString(36)}function je(r){if(r&&r.getRootNode){var i=r.getRootNode();if(i.nodeType===11)return i}}function xn(r,i,e){return e.original?i:i.replace(/([^};{\s}][^};{]*|^\s*){/mg,function(t,n){var a=n.trim();return(a?wt(a):[""]).map(function(c){var h=c.trim();return h.indexOf("@")===0?h:h.indexOf(":global")>-1?h.replace(/\:global/g,""):h.indexOf(":host")>-1?""+h.replace(/\:host/g,"."+r):h?"."+r+" "+h:"."+r}).join(", ")+" {"})}function Dn(r,i,e,t){var n=document.createElement("style");return n.setAttribute("type","text/css"),n.setAttribute("data-styled-id",r),e.nonce&&n.setAttribute("nonce",e.nonce),n.innerHTML=xn(r,i,e),(t||document.head||document.body).appendChild(n),n}function _n(r){var i="rCS"+$e(r),e=0,t;return{className:i,inject:function(n,a){a===void 0&&(a={});var c=je(n),h=e===0,y;return(c||h)&&(y=Dn(i,r,a,c)),h&&(t=y),c||++e,{destroy:function(){c?(n.removeChild(y),y=null):(e>0&&--e,e===0&&t&&(t.parentNode.removeChild(t),t=null))}}}}}var sn=_n;/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */var Ge=function(r,i){return Ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Ge(r,i)};function Fe(r,i){Ge(r,i);function e(){this.constructor=r}r.prototype=i===null?Object.create(i):(e.prototype=i.prototype,new e)}function un(r,i,e,t){var n=arguments.length,a=n<3?i:t===null?t=Object.getOwnPropertyDescriptor(i,e):t,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,i,e,t);else for(var h=r.length-1;h>=0;h--)(c=r[h])&&(a=(n<3?c(a):n>3?c(i,e,a):c(i,e))||a);return n>3&&a&&Object.defineProperty(i,e,a),a}function Lt(){for(var r=0,i=0,e=arguments.length;i1/1e3;){if(n=cn(r,i,t),a=n-e,Math.abs(a)<1/1e3)return t;t-=a/2}return t}function ue(r,i,e,t){var n=function(a){var c=Nn(r,e,D(a,0,1));return cn(i,t,c)};return n.easingName="cubic-bezier("+r+","+i+","+e+","+t+")",n}function Re(r,i){var e=function(t){var n=1/r;return t>=1?1:(i==="start"?n:0)+Math.floor(t/n)*n};return e.easingName="steps("+r+", "+i+")",e}var fn=Re(1,"start"),ee=Re(1,"end"),ln=ue(0,0,1,1),hn=ue(.25,.1,.25,1),vn=ue(.42,0,1,1),mn=ue(0,0,.58,1),gn=ue(.42,0,.58,1),ne,dn="__SCENEJS_",pn="data-scene-id",ce="animation-timing-function",Le={transform:{},filter:{},attribute:{},html:!0},Ie={easing:[ce]},fe=(ne={},ne[ce]=!0,ne.contents=!0,ne.html=!0,ne),yn=1e6,Pe=1e-6,re="duration",Ue="fillMode",ke="direction",Zt="iterationCount",Ut="delay",le="easing",he="playSpeed",ve="easingName",Fn="iterationTime",me="paused",Je="ended",bn="timeupdate",Rn="animate",Ze="play",ye="running",Ce="iteration",Ee="startAnimation",Ve="pauseAnimation",ze="alternate",On="reverse",Qe="alternate-reverse",Ln="normal",Ae="infinite",ge="playState",qe="playCSS",Te="prevTime",Vt="tickTime",Me="currentTime",Nt="selector",En="transform",An={linear:ln,ease:hn,"ease-in":vn,"ease-out":mn,"ease-in-out":gn,"step-start":fn,"step-end":ee},be="_///_",Tn=[re,Ue,ke,Zt,Ut,le,he],Un=[me,Je,bn,Rn,Ze,Ce],de=function(){function r(e,t){this.prefix="",this.suffix="",this.model="",this.type="",this.separator=",",t&&this.setOptions(t),this.value=rt(e)?e.split(this.separator):e}var i=r.prototype;return i.setOptions=function(e){for(var t in e)this[t]=e[t];return this},i.size=function(){return this.value.length},i.get=function(e){return this.value[e]},i.set=function(e,t){return this.value[e]=t,this},i.clone=function(){var e=this,t=e.separator,n=e.prefix,a=e.suffix,c=e.model,h=e.type,y=this.value.map(function(j){return j instanceof r?j.clone():j});return new r(y,{separator:t,prefix:n,suffix:a,model:c,type:h})},i.toValue=function(){return this.prefix+this.join()+this.suffix},i.join=function(){return this.value.map(function(e){return e instanceof r?e.toValue():e}).join(this.separator)},i.forEach=function(e){return this.value.forEach(e),this},r}();function Sn(r){for(var i=It(r,";"),e={},t=i.length,n=t,a=0;a-1)return pe(ct(r));var a=Wt(t,e),c=[t],h=",",y=e+"(",j=")"+n;return a instanceof de&&(h=a.separator,c=a.value,y+=a.prefix,j=a.suffix+j),new de(c,{separator:h,model:e,prefix:y,suffix:j})}function Be(r,i){return new de(r,{type:"array",separator:i})}function Bn(r){var i=ct(r);return i?pe(i):r}function Wt(r,i){if(!rt(r))return Q(r)?Be(r,","):r;var e=wt(r);return e.length>1?Be(e.map(function(t){return Wt(t)}),","):(e=$t(r),e.length>1?Be(e.map(function(t){return Wt(t)})," "):(e=/^(['"])([^'"]*)(['"])$/g.exec(r),e&&e[1]===e[3]?new de([Wt(e[2])],{prefix:e[1],suffix:e[1]}):r.indexOf("(")!==-1?Vn(r):r.charAt(0)==="#"&&i!=="url"?Bn(r):r))}function tn(r,i){i===void 0&&(i={});var e=r.model;if(e){r.setOptions({model:"",suffix:"",prefix:""});var t=r.size()>1?r:r.get(0);i[e]=t}else r.forEach(function(n){tn(n,i)});return i}function en(r){return r instanceof de}function Xn(r,i){Ie[r]=i}function wn(r,i,e){for(var t=r.length,n=Le,a=fe,c=0;c=1?Qe:ze):e===(r%2>=1?ze:Qe)}var Ne=["id",Zt,Ut,Ue,ke,he,re,he,Fn,ge],nr=Lt(Ne,[le,ve]),Yn=function(r){Fe(i,r);function i(t){var n=r.call(this)||this;return n.timerId=0,n.state={id:"",easing:0,easingName:"linear",iterationCount:1,delay:0,fillMode:"forwards",direction:Ln,playSpeed:1,currentTime:0,iterationTime:-1,iteration:0,tickTime:0,prevTime:0,playState:me,duration:0},n.setOptions(t),n}var e=i.prototype;return e.setEasing=function(t){var n=an(t),a=n&&n[ve]||"linear",c=this.state;return c[le]=n,c[ve]=a,this},e.setOptions=function(t){t===void 0&&(t={});for(var n in t){var a=t[n];if(n===le){this.setEasing(a);continue}else if(n===re){a&&this.setDuration(a);continue}Tn.indexOf(n)>-1&&(this.state[n]=a)}return this},e.getTotalDuration=function(){return this.getActiveDuration(!0)},e.getActiveDuration=function(t){var n=this.state,a=n[Zt];return a===Ae?Infinity:(t?n[Ut]:0)+this.getDuration()*a},e.isEnded=function(){return this.state[Vt]===0&&this.state[ge]===me?!0:!(this.getTime()=t?(this.trigger(Ze),!0):!1},e.play=function(t){var n=this,a=this.state,c=a[Ut],h=this.getTime();return a[ge]=ye,this.isEnded()&&(h===0||h>=this.getActiveDuration())&&this.setTime(-c,!0),this.timerId=qt(function(y){a[Te]=y,n.tick(y,t)}),this.start(),this},e.pause=function(){var t=this.state;return t[ge]!==me&&(t[ge]=me,this.trigger(me)),O(this.timerId),this},e.finish=function(){return this.setTime(0),this.state[Vt]=0,this.end(),this},e.end=function(){return this.pause(),this.trigger(Je),this},e.setTime=function(t,n,a){var c=this.getActiveDuration(),h=this.state,y=h[Vt],j=h[Ut],F=n?t:this.getUnitTime(t);if(h[Vt]=j+F,F<0?F=0:F>c&&(F=c),h[Me]=F,this.calculate(),n&&!a){var J=h[Vt];if(y=0&&this.start(0),J"?h+Pe:h}else return Se(t)},e.isDelay=function(){var t=this.state,n=t[Ut],a=t[Vt];return n>0&&a=n&&(F=h*(ht?n%1||1:0),J&&(F=h-F))}return this.setIterationTime(F),this},e.tick=function(t,n){var a=this;if(!this.isPaused()){var c=this.state,h=c[he],y=c[Te],j=c[Ut],F=c[Vt],J=F+Math.min(1e3,t-y)/1e3*h;c[Te]=t,this.setTime(J-j,!0),n&&n*1e3=n?a:on(a,i[c],e,t)})}function rr(r,i,e,t){var n=r.value,a=i.value,c=r.model,h=i.model;if(c!==h)return on(r.toValue(),i.toValue(),e,t);n.length===3&&(n[3]=1),a.length===3&&(a[3]=1);for(var y=$n(n,a,e,t),j=c,F=0;F<3;++F)y[F]=parseInt(y[F],10);var J=new de(y,{type:"color",model:j,prefix:j+"(",suffix:")"});return J}function ir(r,i,e,t){var n=r.type;if(n==="color")return rr(r,i,e,t);var a=r.value,c=i.value,h=$n(a,c,e,t);return new de(h,{type:n,separator:r.separator||i.separator,prefix:r.prefix||i.prefix,suffix:r.suffix||i.suffix,model:r.model||i.model})}function on(r,i,e,t){if(t===0)return i;if(e===0||e+t===0)return r;var n=xe(r),a=xe(i),c=n===nt,h=a===nt;if(c||h)return function(){return on(c?Wt(r()):r,h?Wt(i()):i,e,t)};if(n===a){if(n===it)return ir(r,i,e,t);if(n===Z)return $n(r,i,e,t);if(n!=="value")return r}else return r;var y=zt(""+r),j=zt(""+i),F;if(isNaN(y.value)||isNaN(j.value))return r;F=L(y.value,j.value,e,t);var J=y.prefix||j.prefix,et=y.unit||j.unit;return!J&&!et?F:J+F+et}function ar(r,i,e,t,n,a){if(r===i)return t;if(r===e)return n;if(!a)return on(t,n,r-i,e-r);var c=a((r-i)/(e-i)),h=on(t,n,c,1-c);return h}function qn(r,i){for(var e=r.length,t=0;ti)return[t>0?t-1:0,t]}return[e-1,e-1]}function tr(r){var i=[];for(var e in r)i.push(I+"-"+Yt(e)+":"+r[e]+";");return i.join("")}function or(r,i){for(var e=r.length,t=0;tet){if(mt!==0){var Ct=F*ht+(dt?F-bt[0]:bt[0]),Mt=L(bt[1],Xt,et-Ct,Rt-et);Gn(t,(c+F*a)/h,Mt)}break}else if(Rt===et&&t.length&&t[t.length-1][0]===et+c)break;Gn(t,(c+Rt)/h,Xt)}c&&t.unshift([0,t[0][1]]),e=t,t=[]}),e}var kn=function(r){Fe(i,r);function i(t,n){var a=r.call(this)||this;return a.times=[],a.items={},a.nameMap=new te(be),a.elements=[],a.needUpdate=!0,a.load(t,n),a}var e=i.prototype;return e.getDuration=function(){var t=this.times,n=t.length;return(n===0?0:t[n-1])||this.state[re]},e.size=function(){return this.times.length},e.setDuration=function(t){if(!t)return this;var n=this.getDuration();if(n>0){var a=t/n,c=this,h=c.times,y=c.items,j={};this.times=h.map(function(F){var J=Se(F*a);return j[J]=y[F],J}),this.items=j}else this.newFrame(t);return this},e.setId=function(t){var n=this.state,a=this.elements,c=a.length;if(n.id=t||Bt(!!c),c&&!n[Nt]){var h=rn(this.getId());n[Nt]="["+pn+'="'+h+'"]',a.forEach(function(y){y.setAttribute(pn,h)})}return this},e.set=function(t){for(var n=this,a=[],c=1;c-1;for(var bt in mt){var Ct=Rt?jt-parseFloat(bt):parseFloat(bt);n.set(ht+Ct,mt[bt])}}else if(a.length===1&&Q(J))J.forEach(function(we){n.set(ht,we)});else{var Mt=n.newFrame(ht);Mt.set.apply(Mt,a)}})}return this.needUpdate=!0,this},e.get=function(t){for(var n=[],a=1;a-1&&this.times.splice(c,1),this.needUpdate=!0,this},e.hasFrame=function(t){return this.getUnitTime(t)in this.items},e.hasName=function(t){return this.needUpdate&&this.update(),!!this.nameMap.get(t)},e.mergeFrame=function(t,n){if(n){var a=this.newFrame(t);a.merge(n)}return this},e.getNowFrame=function(t,n,a){var c=this;this.needUpdate&&this.update();var h=new Kn,y=qn(this.times,t),j=y[0],F=y[1],J=this.getEasing()||n,et=this.nameMap;if(this.hasName([ce])){var ht=this.getNowValue(t,[ce],j,F,!1,0,!0);Ot(ht)&&(J=ht)}if(a){var dt=this.getFrame(t),mt=dt.orderMap.filter([],function(bt){return dt.has.apply(dt,bt)});for(var jt in Le){var Xt=et.get([jt]);mt.get([jt])&&Xt&&mt.set([jt],Xt)}et=mt}var Rt=et.gets([]);return h.setOrderObject(et.orderMap),Rt.forEach(function(bt){var Ct=c.getNowValue(t,bt,j,F,a,J,E(bt));z(Ct)||h.set(bt,Ct)}),h},e.load=function(t,n){var a;if(t===void 0&&(t={}),n===void 0&&(n=t.options),n&&this.setOptions(n),Q(t))this.set(t);else if(t.keyframes)this.set(t.keyframes);else for(var c in t)c!=="options"&&this.set((a={},a[c]=t[c],a));return n&&n[re]&&this.setDuration(n[re]),this},e.clone=function(){var t=new i;return t.setOptions(this.state),t.setOrderObject(this.nameMap.orderMap),this.forEach(function(n,a){t.setFrame(a,n.clone())}),t},e.forEach=function(t){var n=this.times,a=this.items;return n.forEach(function(c){t(a[c],c,a)}),this},e.setOptions=function(t){t===void 0&&(t={}),r.prototype.setOptions.call(this,t);var n=t.id,a=t.selector,c=t.elements,h=t.element,y=t.target;return n&&this.setId(n),y?this.setTarget(y):a?this.setSelector(a):(c||h)&&this.setElement(c||h),this},e.toCSS=function(t,n,a){t===void 0&&(t={className:Ee}),n===void 0&&(n=this.getDuration()),a===void 0&&(a=[]);var c=this.state,h=c[Nt];if(!h)return"";var y=this.getDuration();c[re]=y,a.push(c);var j=St(a).reverse(),F=rn(Ft(this)),J=a[0],et=Gt(j,function(_t){return _t[Zt]===Ae||!isFinite(_t[re])},a.length-1),ht=j.slice(0,et),dt=n||ht.reduce(function(_t,Kt){return(Kt[Ut]+_t*Kt[Zt])/Kt[he]},y),mt=j.slice(et).reduce(function(_t,Kt){return(_t+Kt[Ut])/Kt[he]},0),jt=Qt(j,function(_t){return _t[le]&&_t[ve]},c)[ve],Xt=j[et][Zt],Rt=J[Ue],bt=j[et][ke],Ct=tr({fillMode:Rt,direction:bt,iterationCount:Xt,delay:mt+"s",name:dn+"KEYFRAMES_"+F,duration:dt/J[he]+"s",timingFunction:jt}),Mt=wt(h).map(function(_t){var Kt=/([\s\S]+)(:+[a-zA-Z]+)$/g.exec(_t);return Kt?[Kt[1],Kt[2]]:[_t,""]}),we=t.className,Jn=t.selector,fr=Ot(Jn)?Jn(this,h):Jn;return` `+(fr||Mt.map(function(_t){var Kt=_t[0],Zn=_t[1];return Kt+"."+we+Zn}))+" {"+Ct+`} `+Mt.map(function(_t){var Kt=_t[0],Zn=_t[1];return Kt+"."+Ve+Zn})+" {"+I+`-play-state: paused;} @`+S+" "+dn+"KEYFRAMES_"+F+"{"+this._toKeyframes(dt,ht,bt)+"}"},e.exportCSS=function(t,n,a){if(!this.elements.length)return"";var c=this.toCSS(t,n,a),h=a&&!z(a[Zt]);return h||(this.styledInjector&&(this.styledInjector.destroy(),this.styledInjector=null),this.styled=sn(c),this.styledInjector=this.styled.inject(this.getAnimationElement(),{original:!0})),this},e.pause=function(){return r.prototype.pause.call(this),Pt(this)&&this.pauseCSS(),this},e.pauseCSS=function(){return this.elements.forEach(function(t){yt(t,Ve)}),this},e.endCSS=function(){return this.elements.forEach(function(t){Et(t,Ve),Et(t,Ee)}),Y(this,!1),this},e.end=function(){return Dt(this)&&this.endCSS(),r.prototype.end.call(this),this},e.playCSS=function(t,n,a){return t===void 0&&(t=!0),a===void 0&&(a={}),Oe(this,t,n,a),this},e.getAnimationElement=function(){return this.elements[0]},e.addPlayClass=function(t,n,a){a===void 0&&(a={});var c=this.elements,h=c.length,y=tr(a);if(!!h)return t?c.forEach(function(j){Et(j,Ve)}):(c.forEach(function(j){j.style.cssText+=y,pt(j,Ee)&&Et(j,Ee)}),c.forEach(function(j){j.clientWidth}),c.forEach(function(j){yt(j,Ee)})),c[0]},e.clear=function(){return this.times=[],this.items={},this.nameMap=new te(be),this.styledInjector&&this.styledInjector.destroy(),this.styled=null,this.styledInjector=null,this.temp=null,this.needUpdate=!0,this},e.getNowValue=function(t,n,a,c,h,y,j){var F=this.times,J=F.length,et,ht,dt,mt,jt=z(a),Xt=z(c);if(jt||Xt){var Rt=qn(F,t);jt&&(a=Rt[0]),Xt&&(c=Rt[1])}for(var bt=a;bt>=0;--bt){var Ct=this.getFrame(F[bt]);if(Ct.has.apply(Ct,n)){et=F[bt],dt=Ct;break}}var Mt=dt&&dt.raw.apply(dt,n);if(h&&!d([n[0]]))return et===t?Mt:void 0;if(j)return Mt;for(var bt=c;bt-1}function gn(s,d){var E=this.__data__,Y=le(E,s);return Y<0?E.push([s,d]):E[Y][1]=d,this}ee.prototype.clear=ln,ee.prototype.delete=hn,ee.prototype.get=vn,ee.prototype.has=mn,ee.prototype.set=gn;function ne(s){var d=-1,E=s?s.length:0;for(this.clear();++d-1&&s%1==0&&s-1&&s%1==0&&s<=lt}function De(s){var d=typeof s;return!!s&&(d=="object"||d=="function")}function nn(s){return!!s&&typeof s=="object"}function Xe(s){return tn(s)?Zt(s):Rn(s)}function Se(){return[]}function _e(){return!1}U.exports=Vn}).call(this,B("yLpj"),B("YuTi")(kt))}}])})();